#!/usr/bin/env python3.3

#
#  Filename: e48.py
#  Author  : lukas singer
#
#  Comment : Created by createSolution.sh
#

#import euler
#from euler import *

def pe48():
  print(str(sum(i**i for i in range(1,1000)))[-10:])

if __name__=="__main__":
  pe48()

